package egovframework.goods.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
import egovframework.goods.service.GoodsService;
import egovframework.com.bean.DefaultVO;
import egovframework.com.bean.GoodsVO;
import egovframework.goods.service.GoodsDAO;

/**
 * @Class Name : GoodsServiceImpl.java
 * @Description : Goods Business Implement class
 * @Modification Information
 *
 * @author nimbi
 * @since 2014-09-25
 * @version 1.0
 * @see
 *  
 *  Copyright (C)  All right reserved.
 */

@Service("goodsService")
public class GoodsServiceImpl extends EgovAbstractServiceImpl implements
        GoodsService {
        
    private static final Logger LOGGER = LoggerFactory.getLogger(GoodsServiceImpl.class);

    @Resource(name="goodsDAO")
    private GoodsDAO goodsDAO;
    
    /** 카테고리 전체 리스트 갯수 **/
    public int selectGoodsCateCount(GoodsVO goodsVO) throws Exception {
    	return goodsDAO.selectGoodsCateCount(goodsVO);
    }
    /** 카테고리 전체 리스트 **/
    public List<?> selectGoodsCate(GoodsVO goodsVO) throws Exception {
    	return goodsDAO.selectGoodsCate(goodsVO);
    }
    
    /** 카테고리별 리스트 **/
    public List<?> selectGoodsCateList(GoodsVO goodsVO) throws Exception {
    	return goodsDAO.selectGoodsCateList(goodsVO);
    }
    
    /** 카테고리 등록 **/
    public void insertGoodsCate(GoodsVO goodsVO) throws Exception {
    	goodsDAO.insertGoodsCate(goodsVO);
    }
    
    /** 카테고리 SEQ추출 **/
    public int selectMaxSeq(GoodsVO goodsVO) throws Exception {
    	return goodsDAO.selectMaxSeq(goodsVO);
    }

    /** 카테고리 SN추출 **/
    public int selectMaxSn(GoodsVO goodsVO) throws Exception {
    	return goodsDAO.selectMaxSn(goodsVO);
    }
    
    /** 카테고리 삭제 **/
    public void deleteGoodsCate(GoodsVO goodsVO) throws Exception {
    	goodsDAO.deleteGoodsCate(goodsVO);
    }
    
    /** 카테고리 복구 **/
    public void restoreGoodsCate(GoodsVO goodsVO) throws Exception {
    	goodsDAO.restoreGoodsCate(goodsVO);
    }
}
